home *** CD-ROM | disk | FTP | other *** search
/ Macwelt 1 / Macwelt DVD 1.toast / Web-Publishing / HTML-Editoren / Alpha ƒ / Tcl / Modes / textMode.tcl < prev    next >
Encoding:
Text File  |  2000-12-05  |  1.4 KB  |  38 lines

  1. #################################################################################
  2. # Text mode.
  3. # You should not remove this file.  Alpha may not function very well
  4. # without it.
  5. #================================================================================
  6.  
  7. alpha::mode Text 0.1 {
  8.     # Rather than using a 'dummyProc', we use a script,
  9.     # which is then removed (so it's only ever called once).
  10.     newPref v leftFillColumn {0} Text
  11.     newPref v suffixString { <--} Text
  12.     newPref v prefixString {> } Text
  13.     newPref v fillColumn {75} Text
  14.     newPref f wordWrap {1} Text
  15.     newPref v wordBreak {\w+} Text
  16.     newPref v wordBreakPreface {(\W)} Text
  17.     newPref v wrapBreak {[\w_]+} Text
  18.     newPref v wrapBreakPreface {([^\w_])} Text
  19.     newPref f autoMark 0 Text
  20.     newPref flag quietlyClearMarks 0 Text
  21.     proc Text::DblClick {args} {
  22.     eval Tcl::DblClick $args
  23.     }
  24. } {default} {} {
  25. } help {
  26.     If Alpha does not recognize a specific mode when it opens a file,
  27.     the default mode is "Text" mode.  This help window is in Text mode
  28.     -- one of the far right rectangular boxes in the status bar should
  29.     currently read "Text".  This box is actually a pop-up menu, allowing
  30.     you to change the mode of the current window.
  31.  
  32.     For more information regarding basic editing functions in Alpha, see
  33.     the "Alpha Manual" or the shorter "Quick Start" help files.
  34. }
  35.  
  36.  
  37.